package com.cac.demo.newCode.interfaceLog.Controller;

import com.cac.demo.newCode.interfaceLog.service.InterfaceLogService;
import com.cac.demo.util.AccessLog;
import com.cac.demo.util.adapter.ResponseMsg;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/InterFace")
@Api(tags = "Cemop交互日志")
public class InterFaceController {
    @Resource
    private InterfaceLogService interfaceLogService;

    @PostMapping("/getInterFaceList")
    @AccessLog(LogType = "Cemop交互日志查询", sendOrReceive = "sendTxt")
    @ApiOperation(value = "Cemop交互日志查询")
    public ResponseMsg<Object> getInterFaceList(@RequestBody Map map) {
        return interfaceLogService.getInterFaceList(map);
    }
}
